package com.unknowpupil.cloud.consumer.oauth;

import com.unknowpupil.cloud.consumer.profile.feign.ProfileFeign;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Classname: Oauth2Application
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/1/4 2:03
 * @Description: 认证服务器，密码模式   ProfileFeign.class 包不同，无法之间扫描到，所有手动配置，
 * @Version: 1.0
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class},scanBasePackageClasses = {Oauth2Application.class, ProfileFeign.class})
@EnableDiscoveryClient
@EnableFeignClients
public class Oauth2Application {
    public static void main(String[] args) {
        SpringApplication.run(Oauth2Application.class,args);
    }
}
